package yl.hs.bmipfull.pojo.system;

import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

/**
 * 角色信息
 *
 * @author 华砂信息-谢景广
 */
@DBTable(disName = "角色信息", mapCode = "role_info")
public class RoleInfoEntity extends BaseEntity {


    private Long id;
    @DBField(disName = "角色编号", mapCode = "sn", isSerialNumber = true, isRequire = true, snPrefix = "ROLE")
    private String sn;
    @DBField(disName = "角色名称", mapCode = "roleName")
    private String roleName;
    private String roleNamePY;
    @DBField(disName = "角色代码", mapCode = "roleCode")
    private String roleCode;
    @DBField(disName = "组织代码", mapCode = "organizationCode")
    private String organizationCode;
    @DBField(disName = "公司编号", mapCode = "companySN")
    private String companySN;
    @DBField(disName = "角色描述", mapCode = "roleDesc")
    private String roleDesc;
    @DBField(disName = "排序代码", mapCode = "sortCode")
    private String sortCode;
    @DBField(disName = "状态", mapCode = "state")
    private Short state;

    /**
     * 获取主键
     *
     * @return
     */
    public Long getId() {
        return this.id;
    }

    /**
     * 设置主键
     *
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取编号
     *
     * @return
     */
    public String getSn() {
        return this.sn;
    }

    /**
     * 设置编号
     *
     * @param sn
     */

    public void setSn(String sn) {
        this.sn = sn;
    }

    /**
     * 获取角色名称
     *
     * @return
     */
    public String getRoleName() {
        return this.roleName;
    }

    /**
     * 设置角色名称
     *
     * @param roleName
     */
    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    /**
     * 获取角色名称拼音
     *
     * @return
     */
    public String getRoleNamePY() {
        return this.roleNamePY;
    }

    /**
     * 设置角色名称拼音
     *
     * @param roleNamePY
     */
    public void setRoleNamePY(String roleNamePY) {
        this.roleNamePY = roleNamePY;
    }

    /**
     * 获取角色代码
     *
     * @return
     */
    public String getRoleCode() {
        return this.roleCode;
    }

    /**
     * 设置角色代码
     *
     * @param roleCode
     */
    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    /**
     * 获取组织代码
     *
     * @return
     */
    public String getOrganizationCode() {
        return this.organizationCode;
    }

    /**
     * 设置组织代码
     *
     * @param organizationCode
     */
    public void setOrganizationCode(String organizationCode) {
        this.organizationCode = organizationCode;
    }

    /**
     * 获取公司编号
     *
     * @return
     */
    public String getCompanySN() {
        return this.companySN;
    }

    /**
     * 设置公司编号
     *
     * @param companySN
     */
    public void setCompanySN(String companySN) {
        this.companySN = companySN;
    }

    /**
     * 获取角色描述
     *
     * @return
     */
    public String getRoleDesc() {
        return this.roleDesc;
    }

    /**
     * 设置角色描述
     *
     * @param roleDesc
     */
    public void setRoleDesc(String roleDesc) {
        this.roleDesc = roleDesc;
    }

    /**
     * 获取排序代码
     *
     * @return
     */
    public String getSortCode() {
        return this.sortCode;
    }

    /**
     * 设置排序代码
     *
     * @param sortCode
     */
    public void setSortCode(String sortCode) {
        this.sortCode = sortCode;
    }

    /**
     * 获取状态
     *
     * @return
     */
    public Short getState() {
        return this.state;
    }

    /**
     * 设置状态
     *
     * @param state
     */
    public void setState(Short state) {
        this.state = state;
    }
}
